<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
  <meta http-equiv="Pragma" content="no-cache" />
  <meta http-equiv="Expires" content="0" />
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <title> 币资讯后台管理 </title>
  <link rel="stylesheet" href="/layui.css">
</head>
<body class="layui-layout-body" >

<div class="layui-layout layui-layout-admin">
  <div class="layui-header">
    <div class="layui-logo"> 币资讯后台管理</div>
    <!-- 头部区域（可配合layui已有的水平导航） -->
    <ul class="layui-nav layui-layout-left">
      <li class="layui-nav-item"><a  onclick="openLogin()">登录</a></li>
    </ul>
    <ul class="layui-nav layui-layout-right">
      <li class="layui-nav-item">
        <a href="javascript:;">
          <img src="http://t.cn/RCzsdCq" class="layui-nav-img">
          贤心
        </a>
        <dl class="layui-nav-child">
          <dd><a href="">基本资料</a></dd>
          <dd><a href="">安全设置</a></dd>
        </dl>
      </li>
      <li class="layui-nav-item"><a href="">退出</a></li>
    </ul>
  </div>

  <div class="layui-side layui-bg-black">
    <div class="layui-side-scroll">
      <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
      <ul class="layui-nav layui-nav-tree"  lay-filter="test">
        <li class="layui-nav-item ">
          <a class="" href="javascript:void(0);" >栏目管理</a>
          <dl class="layui-nav-child">
            <!--<dd><a href="javasccipt:void(0)" onclick="openWindow('新增分类','/openAdd','800','650')">新增分类</a></dd>-->
            <dd><a href="javascript:;" onclick="chooseprogram()">查询栏目</a></dd>
          </dl>
        </li>

        <li class="layui-nav-item">
          <a href="javascript:;">币种管理</a>
          <dl class="layui-nav-child">
            <dd><a href="javascript:;"onclick="chooseCoin()">查询币种</a></dd>
          </dl>
        </li>

        <li class="layui-nav-item">
          <a href="javascript:;">交易所管理</a>
          <dl class="layui-nav-child">
            <dd><a href="javascript:;" onclick="chooseExchange()">查询交易所</a></dd>
          </dl>
        </li>

        <li class="layui-nav-item">
          <a href="javascript:;">资讯管理</a>
          <dl class="layui-nav-child">
            <dd><a href="javascript:;" onclick="chooseContent()">查询资讯</a></dd>
            <dd><a href="javascript:;" onclick="chooseContentAdd()">新增资讯</a></dd>
            <dd><a href="javascript:;" onclick="openCheckContent()">审核资讯</a></dd>
          </dl>
        </li>

        <li class="layui-nav-item">
          <a href="javascript:;">订阅管理</a>
          <dl class="layui-nav-child">
            <dd><a href="javascript:;" onclick="chooseSubscribe()">查询订阅</a></dd>
          </dl>
        </li>
        <li class="layui-nav-item">
        <a href="javascript:;">用户管理</a>
        <dl class="layui-nav-child">
          <dd><a href="javascript:;" onclick="chooseUser()">查询用户</a></dd>
        </dl>
      </li>
        <li class="layui-nav-item">
          <a href="javascript:;">推送列表管理</a>
          <dl class="layui-nav-child">
            <dd><a href="javascript:;" onclick="choosePushList()">推送列表</a></dd>
          </dl>
        </li>
        <li class="layui-nav-item">
          <a href="javascript:;">管理员</a>
          <dl class="layui-nav-child">
            <dd><a href="javascript:;" onclick="chooseAdministrator()">新增管理</a></dd>
          </dl>
        </li>
      </ul>
    </div>
  </div>

  <div class="layui-body">



    <div style="padding: 15px;">
      <iframe frameborder="0" id="inner" src=""></iframe>

    </div>


</div>

</div>
<script src="/layui.all.js"></script>
<script type="text/javascript" src="/jquery.js"></script>
<script type="text/javascript" src="/lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="/static/h-ui/js/H-ui.min.js"></script>
<script type="text/javascript" src="/static/h-ui.admin/js/H-ui.admin.js"></script> <!--/_footer 作为公共模版分离出去-->

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="/lib/My97DatePicker/4.8/WdatePicker.js"></script>
<script type="text/javascript" src="/lib/datatables/1.10.0/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="/lib/laypage/1.2/laypage.js"></script>
<script type="text/javascript" src="/my.js"></script>
<script>

    function loginFrame(){
        var mainFrame = document.getElementById("inner");
        var bheight = document.documentElement.clientHeight;
        mainFrame.style.width = '100%';
        mainFrame.style.height = (bheight) + 'px';
    }
    loginFrame();

    window.onresize=function(){
        loginFrame();
    }

    function chooseprogram() {
        $("#inner").attr("src", '/queryAllProgram');
    }
    function chooseMesSource() {
        $("#inner").attr("src", '/querymesSourceAll');
    }
    function chooseCoin() {
        $("#inner").attr("src", '/queryCoinByPage?start=0&limit=20');
    }
    function chooseExchange() {
        $("#inner").attr("src", '/queryExchangeByPage?start=0&limit=20');
    }
    function chooseContent() {
        $("#inner").attr("src", '/queryContentByPage?start=0&limit=20');
    }
    function chooseContentAdd() {
        $("#inner").attr("src", '/openContentAdd');
    }
    function chooseAdministrator() {
        $("#inner").attr("src", '/openAdministrator');
    }
    function chooseSubscribe() {
        $("#inner").attr("src", '/querySubscribeByPage?start=0&limit=20');
    }
    function chooseUser() {
        $("#inner").attr("src", '/queryUserByPage?start=0&limit=20');
    }
    function choosePushList() {
        $("#inner").attr("src", '/openPushList');
    }
    function openLogin() {
        $("#inner").attr("src", '/openLogin');
    }
    function openCheckContent() {
        $("#inner").attr("src", '/openCheckContent');
    }
   function  openWindow(title,url,w,h){
        layer_show(title,url,w,h);
    }


</script>
</body>
</html>
